// @ts-ignore
/* eslint-disable */
import { request } from '@umijs/max';
const apiPrefix = '/auth';

/** Obtain verification code GET /v1/auth/captcha */
export async function authControllerGetCaptcha(options?: { [key: string]: any }) {
  return request<API.ApiResultCaptchaResultVO>(`${apiPrefix}/v1/auth/captcha`, {
    method: 'GET',
    ...(options || {}),
  });
}

/** Send mobile SMS verification code POST /v1/auth/sms_code */
export async function authControllerSendSmsCode(
  body: API.SmsReq,
  options?: { [key: string]: any },
) {
  return request<API.ApiResultBoolean>(`${apiPrefix}/v1/auth/sms_code`, {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}
